package tech.aistar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tech.aistar.entity.ExaInfo;
import tech.aistar.entity.ExaScore;

import java.util.List;

@Repository
public interface ExaScoreMapper {
    @Select("select * from exa_score where us_id = ${uid}")
    List<ExaScore> findUserexascore(String uid);

    @Insert("insert into exa_score(us_id,test_id,exa_score,exa_time) value (#{usId},#{testId},#{exaScore},#{exaTime})")
    Integer insertExaScore(ExaScore exaScore);
}
